<?php
/**
 * Created by PhpStorm.
 * User: chenxuyi
 * Date: 2018/2/6
 * Time: 下午2:00
 */

namespace App\ModelCases;

use App\Models\AdminUser;

class AdminUserMC extends BaseMC
{

    public static function getByName($adminUserName)
    {
        return AdminUser::query()
            ->where([
                'admin_user_name' => $adminUserName,
            ])
            ->enable()
            ->first();
    }

}